package com.example.gitdemo.demos.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/index")
    public String index(){
        return "新增功能";
    }

    @PostMapping
    public String test(){

        return "新增用户成功！";
    }
}
